<template>
  <div id="banner">
    <template>
      <el-carousel indicator-position="outside">
        <el-carousel-item>
          <img src="https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1522507520446&di=0620879bd8cb47758c473039c2f257c1&imgtype=0&src=http%3A%2F%2Fimg.zcool.cn%2Fcommunity%2F01c03658835edfa801219c77b08ab3.jpg">
        </el-carousel-item>
        <el-carousel-item>
          <img src="https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1522507616639&di=1f2e322b712294f3846d0c43a2a7445a&imgtype=0&src=http%3A%2F%2Fimg.zcool.cn%2Fcommunity%2F01463358a7c3d7a801219c77fff3f7.png">
        </el-carousel-item>
        <el-carousel-item>
          <img src="https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1522507657114&di=3ef864a0c932e0ac6a906e595a6d3a71&imgtype=0&src=http%3A%2F%2Fimg.zcool.cn%2Fcommunity%2F01cf1157ec6da7a84a0d304fe0f763.jpg">
        </el-carousel-item>
        <el-carousel-item>
          <img src="https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1522507520446&di=0620879bd8cb47758c473039c2f257c1&imgtype=0&src=http%3A%2F%2Fimg.zcool.cn%2Fcommunity%2F01c03658835edfa801219c77b08ab3.jpg">
        </el-carousel-item>
      </el-carousel>
    </template>
  </div>
</template>

<script>
export default {
  name: 'banner',
  data () {
    return {
      msg: 'banner '
    }
  },
  methods: {
  }
}
</script>


<style lang="less">
  #banner{
    margin: 20px auto;
    img{
      width: 100%;
      max-height: 300px;
    }
    .el-carousel__item h3 {
      color: #475669;
      font-size: 18px;
      opacity: 0.75;
      height: 250px;
      margin: 0;
    }
    .el-carousel__item:nth-child(2n) {
      background-color: #99a9bf;
    }
    .el-carousel__item:nth-child(2n+1) {
      background-color: #d3dce6;
    }
  }
</style>
